package com.hub.frame.consts;

public final class ConstantUtil {

    public final static Integer YES = 1;
    public final static Integer NO = 0;

    public final static String X_ACCESS_TOKEN = "X-Access-Token";

    /**
     * 所有菜单ID
     */
    public static final String INIT_MENU_ID = "0";
    /**
     * 所有菜单名称
     */
    public static final String INIT_MENU_NAME = "所有菜单";
    /**
     * 所有菜单等级
     */
    public static final int INIT_MENU_LV = 0;

    /**
     * 默认密码
     */
    public final static String DEFAULT_PASS = "123456";

    /**
     * 缓存strat
     */
    // 验证码1分钟
    public final static Long TIME_VERIFYCODE = 60L;
    // redis验证码缓存五分钟
    public final static int TIME_REDISCODE = 60 * 5;
    // 签名Key过期时间1小时（秒）
    public final static int TIME_SIGN_KEY = 3600;
    // 签名Key过期时间2小时（秒）
    public final static int TIME_SIGN_KEY_DEVICE = 7200;
    /** 缓存常量end */

    /**
     * config常量strat
     */
    // 001后台设置
    public static final String CONFIG_TYPE = "001";
    // 缓存存储key前缀
    public static final String CONFIG_PREFIX = "CONFIG_";
    // 签名过期分钟时间
    public static final String CONFIG_CODE_001 = CONFIG_PREFIX + "001";
    /**
     * config常量end
     */

    /**
     * 文字常量
     */
    public static final String ADMIN_NAME = "管理员";

    /**
     * 区域-国家
     */
    public static final Integer AREA_COUNTRY = 86;

    /**
     * 区域-省级
     */
    public static final Integer AREA_PROVINCE = 1;

    /**
     * 区域-城市
     */
    public static final Integer AREA_CITY = 2;

    /**
     * 区域-区县
     */
    public static final Integer AREA_DISTRICT = 3;

    /**
     * 区域-街道
     */
    public static final Integer AREA_STREET = 4;

}
